/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mapper;

import java.util.List;
import org.apache.ibatis.annotations.Select;
import packageEntities.Messages;

/**
 *
 * @author gngueken
 */
public interface MessageMapper {
     //retourne une liste de favoris
     @Select("select * from messages")
    List<Messages> getAll();
    
    //retourne un favoris ayant l'id mentionne
    @Select("select * from critere where id = #{toto}")
    Messages selectById(int idToGet);
    
    
}
